class SocialLoginFilters {

    def authenticationService
    def grailsApplication

	def filters = {

		// Checking the facebook session
		socialLoginCheck(controller:"*", action:"*") {
			before = {
                return true
/*
                if(!authenticationService.isLoggedIn()) {
                    if (params['signed_request']) {
                        redirect(uri: "https://www.facebook.com/dialog/oauth",
                                params: [client_id: grailsApplication.config.facebook.applicationId,
                                        redirect_uri: "http://apps.facebook.com/tv-youtube"]);
                    }
                }
*/
			}
		}
	}
}
